
/**
 * 加法
 */
export const mathadd = (arg1:string | number, arg2:string | number) => {
    return (Number(arg1) + Number(arg2)).toFixed(2);
}

/**
 * 减法
 */
export const mathsub = (arg1:string | number, arg2:string | number) => {
    return (Number(arg1) - Number(arg2)).toFixed(2);
}

export default {
    mathadd,
    mathsub
}